package com.uday.frmwrk.service;

import javax.servlet.http.HttpServletRequest;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import flex.messaging.FlexContext;
import flex.messaging.FlexSession;

public abstract class FlexSessionActivity extends SqlMapClientDaoSupport  implements BaseActivity {
	public HttpServletRequest request;
	public FlexSession session;

	public FlexSessionActivity() {
		request = FlexContext.getHttpRequest();
		session = FlexContext.getFlexSession();
	}

	public String getSessionId() throws Exception {
		String s = new String();
		s = (String) session.getId();
		return s;
	}

	public String getHeader(String h) throws Exception {
		String s = new String();
		s = (String) request.getHeader(h);
		return h + "=" + s;
	}
}
